package leetcode.stack;

import leetcode.stack.common.StackUtils;

class Solution20 {
    public boolean isValid(String s) {
        return StackUtils.isValid(s);
    }
}

public class leetcode20 {
    public static void main(String[] args) {
        Solution20 solution20 = new Solution20();
        System.out.println(solution20.isValid("()[]{}"));
        System.out.println(solution20.isValid("()"));
        System.out.println(solution20.isValid("(}"));
        System.out.println(solution20.isValid("["));
    }
}
